package p06.p4;

/**
 * Created by wy on 7/15/2017.
 */
class Student {



private String name ="ssss";
private int age;
public String getName(){
    return name;
}
public void setName(String name){
    //System.out.println("name..."+name);
    this.name = name;
  //  System.out.println("this.name..."+this.name);
}

void sss(){

}
    Student(){
        System.out.println("Student");
    }

}
class Demo{
    Demo(){
        System.out.println("Demo");
    }

    public static void main(String[] args) {
        Student student = new Student();
        student.setName("123");
        System.out.println(student.getName());
    }
}
